package com.kgdev.cweb.entities.prod.owned.order;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.kgdev.cweb.entities.prod.managed.Order;
import com.kgdev.cweb.entities.sys.Image;


/**
 * The persistent class for the prod_order_admparam database table.
 * 
 */
@Entity
@Table(name="prod_order_admparam")
public class OrderAdminParam implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "order_id")
	private Integer orderId;
	
	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@OneToOne(optional=false, mappedBy="orderAdminParam")
	private Order order;

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	@Column(name="is_payment_received", nullable=false)
	private Boolean isPaymentReceived;

	private Double price;

	@ManyToOne
	@JoinColumn(name="sketch_id")
	private Image sketch;

	@Column(name="term_days")
	private Integer termDays;

    public OrderAdminParam() {
    }

	public Boolean getIsPaymentReceived() {
		return this.isPaymentReceived;
	}

	public void setIsPaymentReceived(Boolean isPaymentReceived) {
		this.isPaymentReceived = isPaymentReceived;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getTermDays() {
		return this.termDays;
	}

	public void setTermDays(Integer termDays) {
		this.termDays = termDays;
	}

	public Image getSketch() {
		return sketch;
	}

	public void setSketch(Image sketch) {
		this.sketch = sketch;
	}

}